/**
 * Created by 东夋壬 on 2019-07-13.
 */
$(document).ready(function () {
    var items = ["首页","项目","技能","教育","实习","供职","联系"];
    $("#fullpage").fullpage({
        // sectionsColor: ["#218c74","#2c2c54","#b33939","#cd6133","#474787","#227093","#cc8e35"],
        navigation: true,
        navigationPosition: "left",
        loopBottom: true
    });
    $("#profession span").each(function (i) {
        if(i%5===0){$(this).css("backgroundColor","#337ab7");}
        else if(i%5===1){$(this).css("backgroundColor","#5cb85c");}
        else if(i%5===2){$(this).css("backgroundColor","#5bc0de");}
        else if(i%5===3){$(this).css("backgroundColor","#f0ad4e");}
        else if(i%5===4){$(this).css("backgroundColor","#d9534f");}
    });

    $("#fp-nav ul li").each(function (i) {
       $(this).append($("<span class='tag'>"+items[i]+"</span>"));
    });

});